package com.pactera.miyuangroup.vo.response.miyuan;

import lombok.Data;

/**
 * 米源数据返回数据结构
 *
 * @author Wangwu
 * @create 2018-04-25 下午1:45
 **/
@Data
public class MiYuanModel<T> {
    private boolean success;
    private Integer code;
    private String msg;
    private T data ;

    /**
     * 失败
     *
     * @return
     */
    public static MiYuanModel fail() {
        MiYuanModel r = new MiYuanModel();
        r.setSuccess(false);
        r.setMsg("获取数据异常");
        return r;
    }

}
